<include file="Public:header" />
<link rel="stylesheet" type="text/css" href="../Public/css/pic_search.css"/>
<script src="../Public/js/calendar.js" type='text/javascript' language="javascript"></script>
<div class="content">
<div class="crumbs">当前位置:<a href="#">搜索</a></div>
<div class="w_content">
<style>
#Calendar
{
	height:194px!important;
}
#cdrBody table
{
	margin:0px;
}
</style>
<div class="content_r">
    <form action="{:U('Search/index')}" method="post">
    <input type="hidden" name="category" value="0" />
    <input type="hidden" name="bodysearch" value="1" />
    <div class="content_r_top">
        <div class="retrieval">
            <div class="secdiv">
                <p class="stit">上传时间 :</p>
                <p><input type="radio" id="stime1" name="stime" class="r_btn" onclick="showctime();" value="1" <empty name="choose.stime">checked='checked'</empty> <if condition="$choose.stime eq 1">checked='checked'</if> />选择时间</p>
                <p><input type="radio" id="stime2" name="stime" class="r_btn" onclick="closectime();" value="2"  <if condition="$choose.stime eq 2">checked='checked'</if>/>快捷时间段
                <select class="r_btn" id="ftime" name="ftime" onclick="select_fast_time()" style="width:60px;">
                <option id="ftime_defalut" value="1" <if condition="$choose.ftime eq 1">selected='selected'</if>>全部</option>
				<option value="2" <if condition="$choose.ftime eq 2">selected='selected'</if>>最近一天</option>
				<option value="3" <if condition="$choose.ftime eq 3">selected='selected'</if>>最近两天</option>
				<option value="4" <if condition="$choose.ftime eq 4">selected='selected'</if>>最近一周</option>
				<option value="5" <if condition="$choose.ftime eq 5">selected='selected'</if>>最近半月</option>
                </select>
                </p>
                <p class="ymd" id="ctime" <if condition="$choose.stime eq 2"> style="display:none" </if> >
				开始时间:<input name="btime" type="text" style="width:100px" id="btime" maxlength="18" onfocus="c.showMoreDay = false;c.show(this);" value="{$choose.btime}" readonly="readonly"/>--
				结束时间:<input name="etime" type="text" style="width:100px" id="etime" maxlength="18" onfocus="c.showMoreDay = false;c.show(this);" value="{$choose.etime}" readonly="readonly"/>
				</p>
            </div>
            <div class="secdiv">
            	

                <p class="stit">&nbsp;检&nbsp;索&nbsp;词 :</p>
                <input type="text" class="r_btn" id="keyword1" name="keyword1" value="{$ykey}" <if condition="$choose.bything eq 2">style="display:none"</if>/>
				<input type="text" id="keyword2" class="r_btn" name="keyword2" value="{$ykey}"  <empty name="choose.bything">style="display:none"</empty><if condition="$choose.bything eq 1">style="display:none"</if> onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" onpaste="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" oncontextmenu = "value=value.replace(/[^\u4E00-\u9FA5]/g,'')" />
                <input type="radio" class="r_btn" id="bything_defalut" name="bything" value="1" onclick="zhongwen_1();" <empty name="choose.bything">checked='checked'</empty> <if condition="$choose.bything eq 1">checked='checked'</if> />按 词
				<input type="radio" class="r_btn" name="bything" value="2" onclick="zhongwen_2();" <if condition="$choose.bything eq 2">checked='checked'</if>  />按 字
				<input type="checkbox" class="r_btn" id="all_key" name="all_key" value="1" <empty name="choose.all_key"><else /> checked='checked' </empty> />完全匹配
				<input type="checkbox" class="r_btn" id="all_sql" name="all_sql" value="2" <empty name="choose.all_sql"><else /> checked='checked' </empty> />全库</p>
                &nbsp;&nbsp;&nbsp;&nbsp;最近检索词<select id="zkeyword" name="zkeyword" onchange="change_keyword()" class="r_btn" style="width:60px;">
                <option id="zkeyword_defalut" value="">无</option>
                <volist id="zk" name="zkeywords">
				<option value="{$zk}">{$zk}</option>
				</volist>
                </select>
            </div>
            
            <div class="secdiv">
                <p class="stit">结果定制 :</p>
                <p style="margin-left:6px;">每页显示数目<select class="r_btn" style="width:60px;" id="count" name="count">
                <option  value="5"  <if condition="$choose.count eq 10">selected='selected'</if>>5</option>
				</select></p>
                <p><input type="radio" class="r_btn" id="orderby_default" name="orderby" value="1" <empty name="choose.orderby">checked='checked'</empty> <if condition="$choose.orderby eq 1">checked='checked'</if>/>时间倒序</p>
                <p><input type="radio" class="r_btn" name="orderby" value="2" <if condition="$choose.orderby eq 2">checked='checked'</if> />时间正序</p>
                <p><input type="radio" class="r_btn" name="orderby" value="3" <if condition="$choose.orderby eq 3">checked='checked'</if>/>相关度</p>
            </div>
			<input type="hidden" id="submit" name="submit" value="1"/>
            <div class="secbutt"><input type="submit"  value="检 索" class="btn_r"/><input type="submit"  value="二次检索" class="btn_r" onclick="change_submit();"/><input type="button"  value="重 置" class="btn_r" onclick="byreset();"/></div>
        </div>
        </form>
	<div class="clear"></div>
    <div class="content_r_bottom">
    	<div class="picline">
    	<if condition="$p eq 1">
        	<div class="linetit"><img src="../Public/images/tupian.gif"><span>图片</span><a href="{:U('Search/more',array('category'=>1,'key'=>$ykey))}"><span style="font-size:12px; float:right; color:#7c7c7c;padding-right:15px;">更多 >></span></a></div>
        	<ul>
        	<empty name="picturelist">
				<p style="text-align:center;"><h3>对不起，没有符合要求的资源。</h3></p>
			<else />
		     	<volist id="pl" name="picturelist">
		            <li class="imglist">
		        <div class="crb_pic">
		        <table>
		        <tr>
		        <td valign="middle">
		        <div class="imgtd">
		       <a href="{:U('Picture/info',array('vid'=>$pl['pid']))}"> 
				<if condition="$pl.url eq ''" >
					<img src="__PUBLIC__/Images/no_img.jpg" />
					<else />
		        <img src="__PUBLIC__/Uploads/Picture/s_{$pl.url}" />
		        </if>
				</a>
		        </div>
		        </td>
		        </tr>
		        </table>
		        </div>
		        <p>{$pl.title|msubstr=0,8}<span>({$pl.point})</span></p>
		        </li>
		      </volist>
           </empty>
        <div class="clear"></div>
        </ul>
       	</div>
        
        <div class="picline">
        	<div class="linetit"><img src="../Public/images/tupian.gif"><span>视频</span><a href="{:U('Search/more',array('category'=>2,'key'=>$ykey))}"><span style="font-size:12px; float:right; color:#7c7c7c;padding-right:15px;">更多 >></span></a></div>
        	<ul>
        	<empty name="videolist">
				<p style="text-align:center;"><h3>对不起，没有符合要求的资源。</h3></p>
			<else />
        <volist id="vl" name="videolist">
            <li class="imglist">
        <div class="crb_pic">
        <table>
        <tr>
        <td valign="middle">
        <div class="imgtd">
       <a href="{:U('Video/info',array('vid'=>$vl['vid']))}"> 
		<if condition="$vl.imageurl eq ''" >
			<img src="__PUBLIC__/Images/no_img.jpg" />
			<else />
        <img src="__PUBLIC__/Uploads/Video/Image/m_{$vl.imageurl}" />
        </if>
		</a>
        </div>
        </td>
        </tr>
        </table>
        </div>
        <p>{$vl.title|msubstr=0,8}<span>({$vl.point})</span></p>
        </li>
      </volist>  
            </empty>
        <div class="clear"></div>
        </ul>
       	</div>
        
        <div class="picline">
        	<div class="linetit"><img src="../Public/images/tupian.gif"><span>动画</span><a href="{:U('Search/more',array('category'=>3,'key'=>$ykey))}"><span style="font-size:12px; float:right; color:#7c7c7c;padding-right:15px;">更多 >></span></a></div>
        	<ul>
        	<empty name="flashlist">
				<p style="text-align:center;"><h3>对不起，没有符合要求的资源。</h3></p>
			<else />
            <volist id="fl" name="flashlist"> 
            <li class="imglist">
        <div class="crb_pic">
        <table>
        <tr>
        <td valign="middle">
        <div class="imgtd">
       <a href="{:U('Flash/info',array('vid'=>$fl['flaid']))}"> 
		<if condition="$fl.imageurl eq ''" >
			<img src="__PUBLIC__/Images/no_img.jpg" />
			<else />
        <img src="__PUBLIC__/Uploads/Flash/Image/m_{$fl.imageurl}" />
        </if>
		</a>
        </div>
        </td>
        </tr>
        </table>
        </div>
        <p>{$fl.title|msubstr=0,8}<span>({$fl.point})</span></p>
        </li>
        </volist>
           </empty>
        <div class="clear"></div>
       </if>
        <if condition="$p eq 2">
        
        <div class="linetit"><img src="../Public/images/tupian.gif"><span>游戏</span><a href="{:U('Search/more',array('category'=>4,'key'=>$ykey))}"><span style="font-size:12px; float:right; color:#7c7c7c;padding-right:15px;">更多 >></span></a></div>
        	<ul>
        	<empty name="gamelist">
				<p style="text-align:center;"><h3>对不起，没有符合要求的资源。</h3></p>
			<else />
     <volist id="pl" name="gamelist">
            <li class="imglist">
        <div class="crb_pic">
        <table>
        <tr>
        <td valign="middle">
        <div class="imgtd">
       <a href="{:U('Game/info',array('vid'=>$pl['gid']))}"> 
		<if condition="$pl.imageurl eq ''" >
			<img src="__PUBLIC__/Images/no_img.jpg" />
			<else />
        <img src="__PUBLIC__/Uploads/Game/Image/m_{$pl.imageurl}" />
        </if>
		</a>
        </div>
        </td>
        </tr>
        </table>
        </div>
        <p>{$pl.title|msubstr=0,8}<span>({$pl.point})</span></p>
        </li>
      </volist>
            </empty>
        <div class="clear"></div>
        </ul>
       	</div>
        
        <div class="picline">
        	<div class="linetit"><img src="../Public/images/tupian.gif"><span>文章</span><a href="{:U('Search/more',array('category'=>5,'key'=>$ykey))}"><span style="font-size:12px; float:right; color:#7c7c7c;padding-right:15px;">更多 >></span></a></div>
        	<ul>
        	<empty name="articlelist">
				<p style="text-align:center;"><h3>对不起，没有符合要求的资源。</h3></p>
			<else />
        <volist id="vl" name="articlelist">
            <li class="imglist">
        <div class="crb_pic">
        <table>
        <tr>
        <td valign="middle">
        <div class="imgtd">
       <a href="{:U('Article/info',array('vid'=>$vl['aid']))}"> 
		<if condition="$vl.imageurl eq ''" >
			<img src="__PUBLIC__/Images/no_img.jpg" />
			<else />
        <img src="__PUBLIC__/Uploads/Article/Image/{$vl.imageurl}" />
        </if>
		</a>
        </div>
        </td>
        </tr>
        </table>
        </div>
        <p>{$vl.title|msubstr=0,8}<span>({$vl.point})</span></p>
        </li>
      </volist>  
           </empty>
        <div class="clear"></div>
        </ul>
       	</div>
        
        <div class="picline">
        	<div class="linetit"><img src="../Public/images/tupian.gif"><span>挂图</span><a href="{:U('Search/more',array('category'=>6,'key'=>$ykey))}"><span style="font-size:12px; float:right; color:#7c7c7c;padding-right:15px;">更多 >></span></a></div>
        	<ul>
        	<empty name="imagelist">
				<p style="text-align:center;"><h3>对不起，没有符合要求的资源。</h3></p>
			<else />
            <volist id="fl" name="imagelist"> 
            <li class="imglist">
        <div class="crb_pic">
        <table>
        <tr>
        <td valign="middle">
        <div class="imgtd">
		<a href="{:U('Image/info',array('vid'=>$fl['iid']))}">
        <if condition="$fl.url eq ''" >
			<img src="__PUBLIC__/Images/no_img.jpg" />
			<else />
        <img src="__PUBLIC__/Uploads/Image/s_{$fl.url}" />
        </if>
		</a>
        </div>
        </td>
        </tr>
        </table>
        </div>
        <p>{$fl.title|msubstr=0,8}<span>({$fl.point})</span></p>
        </li>
        </volist>
           </empty>
        <div class="clear"></div>
        
        
        </if>
        
        <if condition="$p eq 3">
        
         <div class="linetit"><img src="../Public/images/tupian.gif"><span>图书</span><a href="{:U('Search/more',array('category'=>7,'key'=>$ykey))}"><span style="font-size:12px; float:right; color:#7c7c7c;padding-right:15px;">更多 >></span></a></div>
        	<ul>
        	<empty name="booklist">
				<p style="text-align:center;"><h3>对不起，没有符合要求的资源。</h3></p>
			<else />
     <volist id="pl" name="booklist">
            <li class="imglist">
        <div class="crb_pic">
        <table>
        <tr>
        <td valign="middle">
        <div class="imgtd">
       <a href="{:U('Book/info',array('vid'=>$pl['bid']))}"> 
		<if condition="$pl.imageurl eq ''" >
			<img src="__PUBLIC__/Images/no_img.jpg" />
			<else />
        <img src="__PUBLIC__/Uploads/Book/Image/m_{$pl.imageurl}" />
        </if>
		</a>
        </div>
        </td>
        </tr>
        </table>
        </div>
        <p>{$pl.title|msubstr=0,8}<span>({$pl.point})</span></p>
        </li>
      </volist>
      </empty>
           
        <div class="clear"></div>
        </ul>
       	</div>
        
        <div class="picline">
        	<div class="linetit"><img src="../Public/images/tupian.gif"><span>展品</span><a href="{:U('Search/more',array('category'=>8,'key'=>$ykey))}"><span style="font-size:12px; float:right; color:#7c7c7c;padding-right:15px;">更多 >></span></a></div>
        	<ul>
        	<empty name="exhibitslist">
				<p style="text-align:center;"><h3>对不起，没有符合要求的资源。</h3></p>
			<else />
        <volist id="vl" name="exhibitslist">
            <li class="imglist">
        <div class="crb_pic">
        <table>
        <tr>
        <td valign="middle">
        <div class="imgtd">
       <a href="{:U('Exhibits/info',array('vid'=>$vl['eid']))}"> 
		<if condition="$vl.url eq ''" >
			<img src="__PUBLIC__/Images/no_img.jpg" />
			<else />
        <img src="__PUBLIC__/Uploads/Exhibits/s_{$vl.url}" />
        </if>
		</a>
        </div>
        </td>
        </tr>
        </table>
        </div>
        <p>{$vl.title|msubstr=0,8}<span>({$vl.point})</span></p>
        </li>
      </volist>  
       </empty>
           
        <div class="clear"></div>
        </ul>
       	</div>
        
        <div class="picline">
        	<div class="linetit"><img src="../Public/images/tupian.gif"><span>知识题</span><a href="{:U('Search/more',array('category'=>9,'key'=>$ykey))}"><span style="font-size:12px; float:right; color:#7c7c7c;padding-right:15px;">更多 >></span></a></div>
        	<ul>
        	<empty name="knowledgelist">
				<p style="text-align:center;"><h3>对不起，没有符合要求的资源。</h3></p>
			<else />
            <volist id="fl" name="knowledgelist"> 
            <li class="imglist">
        <div class="crb_pic">
        <table>
        <tr>
        <td valign="middle">
        <div class="imgtd">
       <a href="{:U('Knowledge/info',array('vid'=>$fl['kid']))}"> 
		<if condition="$fl.imageurl eq ''" >
			<img src="__PUBLIC__/Images/no_img.jpg" />
			<else />
        <img src="__PUBLIC__/Uploads/Knowledge/Image/{$fl.imageurl}" />
        </if>
		</a>
        </div>
        </td>
        </tr>
        </table>
        </div>
        <p>{$fl.title|msubstr=0,8}<span>({$fl.point})</span></p>
        </li>
        </volist>
        </empty>
           
        <div class="clear"></div>
        
        </if>
        
        </ul>
       	</div>
        
        <div class="clear"></div>
    </div>
<div class="clear"></div>


<div class="footer_num innerf2">
<if condition="$p gt 1"><a href="{:U('Search/index',array('key'=>$ykey,'p'=>($p-1),'stime'=>$stime,'ftime'=>$ftime,'all_key'=>$all_key,'all_sql'=>$all_sql,'btime'=>$btime,'etime'=>$etime))}">上一页</a></if>
<if condition="$p gt 1"><a class="abord" href="{:U('Search/index',array('key'=>$ykey,'p'=>($p-1),'stime'=>$stime,'ftime'=>$ftime,'all_key'=>$all_key,'all_sql'=>$all_sql,'btime'=>$btime,'etime'=>$etime))}"> < </a></if>
<a class="abord <if condition="$p eq 1"> curra</if>" href="{:U('Search/index',array('key'=>$ykey,'p'=>1,'stime'=>$stime,'ftime'=>$ftime,'all_key'=>$all_key,'all_sql'=>$all_sql,'btime'=>$btime,'etime'=>$etime))}"> 1 </a>
<a class="abord <if condition="$p eq 2"> curra</if>" href="{:U('Search/index',array('key'=>$ykey,'p'=>2,'stime'=>$stime,'ftime'=>$ftime,'all_key'=>$all_key,'all_sql'=>$all_sql,'btime'=>$btime,'etime'=>$etime))}"> 2 </a>
<a class="abord <if condition="$p eq 3"> curra</if>" href="{:U('Search/index',array('key'=>$ykey,'p'=>3,'stime'=>$stime,'ftime'=>$ftime,'all_key'=>$all_key,'all_sql'=>$all_sql,'btime'=>$btime,'etime'=>$etime))}"> 3 </a>
<if condition="$p lt 3"><a class="abord" href="{:U('Search/index',array('key'=>$ykey,'p'=>($p+1),'stime'=>$stime,'ftime'=>$ftime,'all_key'=>$all_key,'all_sql'=>$all_sql,'btime'=>$btime,'etime'=>$etime))}"> > </a></if>
<if condition="$p lt 3"><a href="{:U('Search/index',array('key'=>$ykey,'p'=>($p+1),'stime'=>$stime,'ftime'=>$ftime,'all_key'=>$all_key,'all_sql'=>$all_sql,'btime'=>$btime,'etime'=>$etime))}">下一页</a></if>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>

<script type="text/javascript">
	function showctime()
	{
		$("#ctime").show();
	}

	function closectime()
	{
		$("#ctime").hide();
	}
	
	function select_fast_time()
	{
		$(":input[name='stime']").val(2);
		$("#stime1").attr("checked","");
		$("#stime2").attr("checked","true");
		$("#ctime").hide();
	}

	function change_keyword()
	{
		var zkeyword=$("#zkeyword").val();
		$("#keyword1").val(zkeyword);
		$("#keyword2").val(zkeyword);
	}

	function change_submit()
	{
		$("#submit").val(2);
	}

	function byreset()
	{
		//$.post("{:U('Search/reset')}",{},function(data){});
		$("#ftime_defalut").attr("selected","selected");
		$("#stime1").attr("checked","checked");
		$("#stime2").attr("checked","");
		$("#ctime").show();
		$("#zkeyword_defalut").attr("selected","selected");
		$("#count_defalut").attr("selected","selected");
		$("#btime").val('');
		$("#etime").val('');
		$("#keyword1").val('');
		$("#keyword2").val('');
		$("#bything_defalut").attr("checked","checked");
		$("#all_key").attr("checked","");
		$("#all_sql").attr("checked","");
		$("#orderby_default").attr("checked","checked");
	}

	function zhongwen_1()
	{
		$("#keyword2").hide();
		$("#keyword1").show();
	}
	
	function zhongwen_2()
	{
		$("#keyword1").hide();
		$("#keyword2").show();
	}

</script>
<include file="Public:footer" />